package com.ssy.jt808.gateway.domain.protocol;

import com.ssy.jt808.gateway.domain.constant.SpecialMessageConstant;
import com.ssy.jt808.protocol.basics.JTMessage;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;
import lombok.Data;

/**
 * 语音播报操作指令
 *
 * @author wezezhou
 * https://gitee.com/yezhihao/jt808-server
 */
@Data
@Message(SpecialMessageConstant.语音播报文件操作)
public class T9600 extends JTMessage{

  @Field(length=1, desc="操作类型（0=下载 1=删除 2=播放语音文件）")
  private int type;

  @Field(lengthUnit=1, desc="语音文件编码数据")
  private byte[] voiceCodeData;

  @Field(lengthUnit=1, desc="语音文件下载地址url")
  private String voiceUrl;
}